<%@CODEPAGE=65001%>
<!--#include file="conn.asp"-->
<%
act = request("act")
if act = "pic" then
	filename = request("filename")
	deltype = request("type")
	if deltype = "only" then
		if filename <> "" or not isnull(filename) then
		Set fs = Server.CreateObject("Scripting.FileSystemObject")
			path1 = server.MapPath(SitePath&PhotoFolder&filename)
			path2 = server.MapPath(SitePath&PhotoFolder&"thumb/"&filename)
			if fs.FileExists(path1) or fs.FileExists(path2) then	
				fs.deleteFile(path1)
				fs.deleteFile(path2)
				response.write "ok"
			end if
		Set fs = Nothing
		end if
	elseif deltype = "all" then
		
	end if
end if
%>